-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core: improve and fix bid timeout logic #10379
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I commented a few personal preferences, but otherwise LGTM
src/adapterManager.js
Outdated
@@ -380,7 +380,7 @@ adapterManager.callBids = (adUnits, bidRequests, addBidResponse, doneCb, request | |||
return; | |||
} | |||
|
|||
let [clientBidRequests, serverBidRequests] = bidRequests.reduce((partitions, bidRequest) => { | |||
let [clientBidderReqs, serverBidRequests] = bidRequests.reduce((partitions, bidRequest) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason we're changing this variable? I find the new name less readable. I'd prefer clientBidderRequests, personally.
src/auction.js
Outdated
} | ||
|
||
if (_auctionEnd === undefined) { | ||
let timedOutBidders = []; | ||
let timedOutReqs = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
timedOutRequests
Type of change
Description of change
bidderTimeout
and the other sometimes firing afterbidderTimeout + timeoutBuffer
. Since the second, when it happens, always happens too late, it was removed as redundant.Other information
Closes #10349